<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="author" content="林镭特">
    <title></title>
    <style>
        .clock{
        width: 500px;
        height: 500px;
        position: relative;

    }
    .clock a{
        display: inline-block;
        background-image: url('clock.jpg');
        background-size: 500px 500px;
        width: 500px;
        height: 500px;
    }
    .shi{
        width: 6px;
        height: 125px;
        background-color: pink;
        position: absolute;
        top: 125px;
        left: 247px;
        animation: shi 43200s linear infinite ;
        transform-origin: 50% 100%;
    }
    @keyframes shi {
        0%{
            /* transform-origin: 50% 100%; */
            transform: rotate(0deg);
        }
        50%{
            /* transform-origin: 50% 100%; */
            transform: rotate(180deg);
        }
        100%{
            /* transform-origin: 50% 100%; */
            transform: rotate(360deg);
        }
    }
    .miao{
        width: 2px;
        height: 187px;
        background-color: red;
        position: absolute;
        top: 65px;
        left: 249px;
        animation: miao 60s linear infinite ;
        transform-origin: 50% 100%;
    }
    @keyframes miao {
        0%{
            /* transform-origin: 50% 100%; */
            transform: rotate(0deg);
        }
        50%{
            /* transform-origin: 50% 100%; */
            transform: rotate(180deg);
        }
        100%{
            /* transform-origin: 50% 100%; */
            transform: rotate(360deg);
        }
    }
    .fen{
        width: 4px;
        height: 150px;
        background-color: blue;
        position: absolute;
        top: 101px;
        left: 248px;
        animation: fen 3600s linear infinite ;
        transform-origin: 50% 100%;
    }
    @keyframes fen {
        0%{
            /* transform-origin: 50% 100%; */
            transform: rotate(0deg);
        }
        50%{
            /* transform-origin: 50% 100%; */
            transform: rotate(180deg);
        }
        100%{
            /* transform-origin: 50% 100%; */
            transform: rotate(360deg);
        }
    }
    .dian{
        width: 15px;
        height: 15px;
        position: absolute;
        top: 242px;
        left: 242px;
        background-color: black;
        border-radius: 50%;
    }
    </style>
</head>
<body>
    <div class="clock">
        <a href="#"></a>
        <div class="miao"></div>
        <div class="fen"></div>
        <div class="shi"></div>
        <div class="dian"></div>
    </div>
<script>
    var hours=document.querySelector('.shi')
    var mins=document.querySelector('.fen')
    var seconds=document.querySelector('.miao')

        var now = new Date();
        var hour = now.getHours();
        var min = (now.getMinutes());
        var second = (now.getSeconds());

        seconds.style.animationDelay='-'+second+'s';
        mins.style.animationDelay='-'+(min*60+second)+'s';
        hours.style.animationDelay='-'+(hour*3600+min*60+second)+'s';

</script>
</body>
</html>